%ion-view#albums-page(hide-nav-bar="true" view-title="相册")
  %ion-header-bar.bar-furion(align-title="center")
    %button.back-button(ng-click="goBack()")
    %h1.title 相册
    %button.button-clear.button.light(ng-click="showDelete()") {{shouldDeleteValue}}

  %ion-content
    %ion-refresher(pulling-text="下拉刷新" on-refresh="getAlbums()" refresh-text="数据刷新中")

    .albums-list
      .row(style="flex-wrap: wrap")
        .col.col-33(ng-repeat="i in images track by $index")
          .album(style="background: url({{i.url}})" ng-click="openImgModal(i.url)")
            %a.deleteImage(ng-class="{'active': shouldDeleteThis == $index}" ng-if="shouldDelete" ng-click="deleteImage($index)")
              .dot
        .col.col-33.flex-center
          %a.add-img(ng-click="choseAddImg()")
            %i.icon.ion-plus